{template header}

<div class="midder">
<div class="mc">
<div class="bbox">

{template menu}

<div class="bc">
<div class="cleft">
<div>
<form method="post" class="form text-form" action="{tsUrl('weibo','add',array('ts'=>'do'))}" enctype="multipart/form-data">
<textarea style="width:98%;height:40px;" name="content"></textarea>
<div style="padding:5px 0;">

<input type="hidden" name="token" value="{$_SESSION['token']}" />

<button  class="btn btn-success"  type="submit">发布</button>
</div>
</form>
</div>

<ul>
{loop $arrWeibo $key $item}
<li class="mbtl">
<a href="{tsUrl('user','space',array('id'=>$item[user][userid]))}"><img title="{$item[user][username]}" alt="{$item[user][username]}" src="{$item[user][face]}" width="48" /></a>
</li>
<li class="mbtr">
<div class="author"><a href="{tsUrl('user','space',array('id'=>$item[user][userid]))}">{$item[user][username]}</a> {$item['addtime']}</div>
<div class="title"><a href="{tsUrl('group','topic',array('id'=>$item['topicid']))}">{$item[title]}</a></div>
<div class="content">
{if $item[photo]}<a target="_blank" href="{SITE_URL}uploadfile/weibo/{$item[photo]}"><img src="{php echo tsXimg($item['photo'],'weibo',240,'',$item['path'])}" /></a>{/if}
{php echo nl2br(htmlspecialchars($item[content]))}
</div>
<p style="text-align:right;">

<a href="{tsUrl('weibo','show',array('id'=>$item['weiboid']))}">{if $item['count_comment'] > '0'}({$item['count_comment']}){/if}回复</a>

{if $TS_USER['user']['isadmin'] == 1}
<a href="{tsUrl('weibo','delete',array('weiboid'=>$item['weiboid']))}">删除</a>
{/if}

</p>
</li>
<div class="clear"></div>
{/loop}
</ul>

<div class="clear"></div>
<div class="page">{$pageUrl}</div>
<div>

</div>

</div>


<div class="rbox">
<h2>社区推荐</h2>
<div class="bc commlist">
<ul>
{loop $arrPosts $key $item}
<li><a href="{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[title]}</a></li>
{/loop}
</ul>
</div>
<h2>广告赞助</h2>
<div style="height:250px;"></div>
</div>


</div>
</div>

</div>
</div>		
{template footer}